<template>
  <div id="app">
    <el-row>
      <el-col :span="3" class="vancol-3">
        <Adminleft></Adminleft>
      </el-col>
      <el-col :span="21">
        <AdminTop></AdminTop>
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  import Adminleft from '../AdminLeft/adminleft' 
  import AdminTop from '../AdminTop/AdminTop' 
  export default {
    name: 'App',
    components:{
      Adminleft:Adminleft,
      AdminTop:AdminTop
    },
    beforeCreate:function(){
      // let ueseInfoData = JSON.parse(sessionStorage.getItem('userInfo'));//取出缓存数据
      // this.$store.commit('userInfo',ueseInfoData)
      // if(ueseInfoData){
      //   let login = ueseInfoData[1].login
      //   // login = 0
      //   if(login && login == '1'){
      //     // console.log('登陆状态')
      //   }else{
      //     this.$router.push({path:'/login/login'})
      //     // console.log('不在登陆状态')
      //     // console.log(login)
      //   }
      // }else{
      //     this.$router.push({path:'/login/login'})
      // }
    },
    mounted:function(){
        //console.log(ueseInfo)
    },
    methods:{
      hathBtn:function(){
        this.$router.push({path:'/'})
      }
    }
  }
</script>
